package orm;

import java.sql.Timestamp;
import java.sql.Date;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer userid;
	private String name;
	private String password;
	private Date birthday;
	private String email;
	private Boolean doctor;
	private Boolean manager;
	private Boolean ban;
	private Timestamp bantime;
	private Integer grade;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String name, String password, Date birthday, String email,
			Boolean doctor, Boolean manager, Boolean ban, Integer grade) {
		this.name = name;
		this.password = password;
		this.birthday = birthday;
		this.email = email;
		this.doctor = doctor;
		this.manager = manager;
		this.ban = ban;
		this.grade = grade;
	}

	/** full constructor */
	public User(String name, String password, Date birthday, String email,
			Boolean doctor, Boolean manager, Boolean ban, Timestamp bantime,
			Integer grade) {
		this.name = name;
		this.password = password;
		this.birthday = birthday;
		this.email = email;
		this.doctor = doctor;
		this.manager = manager;
		this.ban = ban;
		this.bantime = bantime;
		this.grade = grade;
	}

	// Property accessors

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Boolean getDoctor() {
		return this.doctor;
	}

	public void setDoctor(Boolean doctor) {
		this.doctor = doctor;
	}

	public Boolean getManager() {
		return this.manager;
	}

	public void setManager(Boolean manager) {
		this.manager = manager;
	}

	public Boolean getBan() {
		return this.ban;
	}

	public void setBan(Boolean ban) {
		this.ban = ban;
	}

	public Timestamp getBantime() {
		return this.bantime;
	}

	public void setBantime(Timestamp bantime) {
		this.bantime = bantime;
	}

	public Integer getGrade() {
		return this.grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

}